<!DOCTYPE html>
<!--[if lt IE 7]>      <html class="ie6"> <![endif]-->
<!--[if IE 7]>         <html class="ie7"> <![endif]-->
<!--[if IE 8]>         <html class="ie8"> <![endif]-->
<!--[if gt IE 8]><!--> <html>             <!--<![endif]-->
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
        <title>
            <if condition=" isset($SEO['title']) && !empty($SEO['title']) ">{$SEO['title']}</if>
            {:C("sitename")}</title>
        <meta name="keywords" content="{$SEO['keyword']}" />
        <meta name="description" content="{$SEO['description']}" />
        <link rel="canonical" href="{$Config.siteurl}" />
        <!-- base css include -->
        <link rel="stylesheet" type="text/css" href="__PUBLIC_DC__/lib/css/base.css" />
        <link rel="stylesheet" type="text/css" href="__PUBLIC_DC__/skin/css/base.css" />
        <link rel="stylesheet" type="text/css" href="__PUBLIC_DC__/skin/css/food.css" />
        <!--[if lt IE 9]>
        <script type="text/javascript" src="__PUBLIC_DC__/lib/js/html5.js"></script>
        <![endif]-->
        <script type="text/javascript" src="__PUBLIC_DC__/lib/js/jquery-1.4.2.min.js"></script>
        <script type="text/javascript" src="__PUBLIC_DC__/lib/js/engine.js?jversion=2.0"></script>
        <script type="text/javascript" src="__PUBLIC_DC__/lib/js/area.js?jversion=2.0"></script>
        <script type="text/javascript">
            function AddFavorite(sURL, sTitle) {
                try {
                    window.external.addFavorite(sURL, sTitle);
                } catch (e) {
                    try {
                        window.sidebar.addPanel(sTitle, sURL, "");
                    } catch (e) {
                        alert("加入收藏失败，请使用Ctrl+D进行添加");
                    }
                }
            }
            function SetHome(url) {
                if (document.all) {
                    document.body.style.behavior = 'url(#default#homepage)';
                    document.body.setHomePage(url);
                } else {
                    alert("您好,您的浏览器不支持自动设置页面为首页功能,请您手动在浏览器里设置该页面为首页!");
                }
            }
        </script>
        <style type="text/css">
            .pager {overflow:hidden;padding:0px 20px 20px 20px;margin:0 auto;color:#333333;text-align:center;font-size:12px;}
            .pager A, .pager span{color:#000;text-decoration: none; height:22px; line-height:22px; border:1px #e3e3e3 solid;padding:0px 9px;display:inline-block;margin-right:5px; background-color:#ffffff;}
            .pager A:link{color:#000000;}
            .pager A:visited{color:#000000;}
            .pager A:hover {border:1px #fc6f0b solid !important; background-color:#fc6f0b;color:#fff!important; text-decoration:none;}
            .pager A:active {border:1px #fc6f0b solid !important;background-color:#fc6f0b;color:#fff!important; text-decoration:none;}

            .pager .current:hover,.pager .current{border:1px #e3e3e3 solid !important;background-color:#fc6f0b;color:#fff!important;}

        </style>
    </head>
    <body id="javask">

        <!---------------------------------------------------------------------------------------------------------------------------->
        <!-- 头部 start -->
        <header id="header">
            <div class="wrapper marc header">
                <a class="l show logo" href="{:G::$Cache['siteurl']}" title="logo"></a>
                <nav class="l nav">
                    <p><a class="dealer" href="{:U('Home/Shop/Index')}">商家店铺</a></p>
                    <p><a class="dish" href="{:U('Home/Cai/Index')}">美味菜品</a></p>
                </nav>
                <nav class="l menu">
                    <if condition="session('uid') gt 0">
                        <p class="line f14"><a href="{:U('User/index/index')}">{:session('username')}</a></p>
                        <p class="line f14"><a href="{:U('User/index/index')}">会员中心</a></p>
                        <p class="line f14"><a href="{:U('User/Article/add')}">用户投稿</a></p>
                        <else/>
                        <p class="line f14"><a href="{:U('User/Public/Login/?refer='.rawurlencode(base64_encode(__SELF__)))}">登陆</a></p>
                        <p class="line f14"><a href="{:U('User/Public/reg')}">注册</a></p>
                        <p class="line f14"><a href="{:U('User/Public/reg',array('type'=>'shop'))}">注册店铺</a></p>
                    </if>
                </nav>
                <dl class="r">
                    <dt>
                    <if condition="session('uid') gt 0">
                        <a href="{:U('User/Public/loginOut')}">登出</a><span>|</span>
                    </if>
                    <a href="javascript:void(0)" onclick="SetHome(window.location);return false;">设为首页</a><span>|</span><a href="javascript:void(0)" onclick="AddFavorite(window.location,document.title);return false;">加入收藏</a></dt>
                    <form action="{:U('Shop/index')}" id="search_form">
                        <dd><input type="text" id="search" name="keyword" value="请输入关键词" class="txt"><input type="submit" class="but" value=" "></dd>
                    </form>
                </dl>
            </div>
        </header>
        <script type="text/javascript">
            $("#search").focus(function(){
                if ($(this).val()=="请输入关键词"){
                    $(this).val("");
                }
            }).blur(function(){
                if ($(this).val()==""){
                    $(this).val("请输入关键词");
                }
            });
            $("#search_form").submit(function(){
                if ($("#search").val()=="请输入关键词" || $("#search").val()==""){
                    alert("请输入关键词!");
                    return false;
                }
            });

        </script>
        <!-- 头部 end -->
        <!---------------------------------------------------------------------------------------------------------------------------->
